package com.mayfool.gitmanager.core.entity;

import com.mayfool.gitmanager.core.enums.BranchCreateStatus;

/**
 * 分支创建结果实体类
 * 
 * @author zhou.xu
 * @date 2024-03-18 15:00:00
 */
public class BranchCreateResult {
    /**
     * 项目路径
     */
    private String projectPath;
    
    /**
     * 分支名称
     */
    private String branchName;
    
    /**
     * 创建状态
     */
    private BranchCreateStatus status;
    
    /**
     * 错误信息
     */
    private String errorMessage;

    /**
     * 构造函数
     * 
     * @param projectPath 项目路径
     * @param branchName 分支名称
     * @param status 创建状态
     */
    public BranchCreateResult(String projectPath, String branchName, BranchCreateStatus status) {
        this.projectPath = projectPath;
        this.branchName = branchName;
        this.status = status;
    }

    /**
     * 构造函数
     * 
     * @param projectPath 项目路径
     * @param branchName 分支名称
     * @param status 创建状态
     * @param errorMessage 错误信息
     */
    public BranchCreateResult(String projectPath, String branchName, BranchCreateStatus status, String errorMessage) {
        this(projectPath, branchName, status);
        this.errorMessage = errorMessage;
    }

    public String getProjectPath() {
        return projectPath;
    }

    public void setProjectPath(String projectPath) {
        this.projectPath = projectPath;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public BranchCreateStatus getStatus() {
        return status;
    }

    public void setStatus(BranchCreateStatus status) {
        this.status = status;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
} 